package com.woniu.gf.pawn.productentityweb.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.gf.pawn.comm.core.domain.Management;
import com.woniu.gf.pawn.comm.core.domain.ProductBigType;
import com.woniu.gf.pawn.comm.core.domain.ProductEntity;
import com.woniu.gf.pawn.comm.core.domain.ProductSmallType;
import com.woniu.gf.pawn.dto.ProductEntityDto;
import com.woniu.gf.pawn.dto.ProductImageDto;
import com.woniu.gf.pawn.dto.ProductPropertyAndValueDto;
import com.woniu.gf.pawn.param.PageParam;
import com.woniu.gf.pawn.param.ProductEntityParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TL
 * @since 2020-10-14
 */
public interface IProductEntityService extends IService<ProductEntity> {

    ProductSmallType findSmallTypeName(String query);

    ProductBigType findBigTypeName(String query);

    IPage<ProductEntityDto> findPageProduct(PageParam pageParam);

    Management findManagerId(String manageName);

    ProductEntityDto findOneShopInfo(Integer productEntityId);

    ProductPropertyAndValueDto findPropertyAndValues(int parseInt);

    List<ProductImageDto> findImages(Integer productEntityId);

    void addProductEntity(ProductEntityParam productEntityParam);

    void updateProductEntity(ProductEntityParam productEntityParam);

    void deleteProductById(Integer productEntityId);
}
